<template>
	<view>
		<uni-popup ref="popup" type="bottom">
			<view class="bg-white padding-sm radiusTop" style="padding-bottom: 140rpx;">
				<view style="display: flex;  justify-content: space-between;">
					<view>
						<view class=" font-34rpx">选择位置与门店</view>
						<view class=" font-13">{{location.address}}</view>
					</view>
					<view @click="close()">关闭</view>
				</view>


				<scroll-view style="height: 700rpx;" scroll-y>
					<view v-for="item in 8" @click="selectStore(item)">
						<storeItem></storeItem>
						<view style="border-bottom:1px solid #ccc"></view>
					</view>
				</scroll-view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		name: "selectStorePopup",
		data() {
			return {
				location: {
					address: "加载中..."
				}
			};
		},
		onShow() {

		},
		methods: {
			open() {
				this.init()
				this.$refs.popup.open()
			},
			close() {
				this.$refs.popup.close()
			},
			selectStore(data) {
				this.$refs.popup.close()
			},

			init() {
				this.location = this.$storage.getItem("location")
				console.log(this.location);
			}

		}
	}
</script>

<style>

</style>